<?xml version="1.0" ?>
<xs:schema id="list" xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:element name="list">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="profile" type="profile" minOccurs="0" maxOccurs="unbounded"></xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:complexType name="item">
		<xs:sequence>
			<xs:element name="displayname" type="xs:string" minOccurs="0" />
			<xs:element name="filename" type="xs:string" minOccurs="0" />
			<xs:element name="owner" type="xs:string" minOccurs="0" />
			<xs:element name="description" type="xs:string" minOccurs="0" />
			<xs:element name="comment" type="xs:string" minOccurs="0" />
			<xs:element name="version" type="xs:string" minOccurs="0" />
			<xs:element name="field" type="field" minOccurs="0" maxOccurs="unbounded"></xs:element>
			<xs:element name="attachment" type="attachment" minOccurs="0" maxOccurs="unbounded"></xs:element>
			<xs:element name="categories" type="categories" minOccurs="0" maxOccurs="unbounded"></xs:element>
			<xs:element name="alerts" type="alerts" minOccurs="0" maxOccurs="unbounded"></xs:element>
			<xs:element name="versions" type="versions" minOccurs="0" maxOccurs="1"></xs:element>
			<xs:element name="id" type="xs:string" minOccurs="0" />
      <xs:element name="security" type="security" minOccurs="0" maxOccurs="unbounded" />
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="profile">
		<xs:sequence>
			<xs:element name="item" type="item" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute name="Name" form="unqualified" type="xs:string" />
		<xs:attribute name="hidden" form="unqualified" type="xs:string" />
		<xs:attribute name="documenttemplateurl" form="unqualified" type="xs:string" />
		
	</xs:complexType>
	<xs:complexType name="versions">
		<xs:sequence>
			<xs:element name="item" type="item" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="alerts">
		<xs:sequence>
			<xs:element name="alert" type="alert" minOccurs="0" />
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="alert">
		<xs:sequence>
			<xs:element name="user" type="xs:string" minOccurs="0" />
			<xs:element name="type" type="xs:string" minOccurs="0" />
			<xs:element name="frequency" type="xs:string" minOccurs="0" />
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="field">
		<xs:sequence maxOccurs="unbounded">
			<xs:element name="name" type="xs:string" minOccurs="0" />
			<xs:element name="type" type="xs:string" minOccurs="0" />
			<xs:element name="value" type="xs:string" minOccurs="0" />
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="attachment">
		<xs:sequence>
			<xs:element name="displayname" type="xs:string" minOccurs="1" />
			<xs:element name="filename" type="xs:string" minOccurs="1" />
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="categories">
		<xs:sequence>
			<xs:element name="value" type="xs:string" minOccurs="0" />
		</xs:sequence>
	</xs:complexType>
  <xs:complexType name="security">
    <xs:choice maxOccurs="unbounded">
      <xs:element name="user" type="user" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="role" type="role" minOccurs="0" maxOccurs="unbounded" />
    </xs:choice>
  </xs:complexType>
  <xs:complexType name="role">
    <xs:sequence>
      <xs:element name="name" type="xs:string" />
      <xs:element name="permissions" type="xs:string" />
      <xs:element name="xml" type="xs:string" minOccurs="0" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="user">
    <xs:sequence>
      <xs:element name="role" type="xs:string" />
      <xs:element name="account" type="xs:string" />
      <xs:element name="email" type="xs:string" minOccurs="0" />
      <xs:element name="name" type="xs:string" minOccurs="0" />
      <xs:element name="type" type="xs:string" minOccurs="0" />
      <xs:element name="xml" type="xs:string" minOccurs="0" />
    </xs:sequence>
  </xs:complexType>
</xs:schema>